package com.honghu.villagepost.adapter

import com.honghu.villagepost.R
import com.honghu.villagepost.entity.Classify
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.honghu.villagepost.util.GlideUtil

/**
 * @author: mqwang
 * @create: 1/27/21 2:03 PM
 * @Description:
 */
class ClassifyAdapter : BaseQuickAdapter<Classify, BaseViewHolder>(R.layout.adapter_classify) {
    override fun convert(helper: BaseViewHolder?, item: Classify) {

        helper!!.setText(R.id.tv_name, item.name)

        GlideUtil.loadCircleImg(helper.getView(R.id.iv_image), item.icon)

    }
}